<template>
  <h2>测试全局状态管理</h2>
  store--{{ counter }}
  <br />
  <el-button @click="addCounter">+2</el-button>
  <nuxt-link to="/nav">go-nav</nuxt-link>
</template>
<script setup>
const counter = useCounter();
const addCounter = () => {
  counter.value += 2;
};
</script>
